package com.zhinan.common;

/**
 * @Description: 系统枚举类
 * @Author: ZhiNan
 * @Date: 2023-04-20 15:32
 * @Version: 1.0
 */
public interface SysEnum {

    /**
     * 有关部门信息的枚举类
     */
    enum DepartMentInfo implements SysEnum {

        DEFAULT_DEPART("AC0000", "默认部门");

        private final String code;

        private final String name;

        DepartMentInfo(String code, String name) {
            this.code = code;
            this.name = name;
        }

        public String getCode() {
            return code;
        }

        public String getName() {
            return name;
        }
    }

    /**
     * 有关错误信息的枚举类
     */
    enum ErrorMsg implements SysEnum {

        WRONG_PASSWORD("300", "密码错误!"),

        USER_EXIST("301", "当前用户已存在!"),

        USER_NOT_EXIST("302", "当前账号不存在!"),

        SYSTEM_ERROR("500", "系统内部错误,请技术联系管理员"),

        KAPTCHA_ERROR("303","验证码错误");

        private final String code;

        private final String name;

        ErrorMsg(String code, String name) {
            this.code = code;
            this.name = name;
        }

        public String getCode() {
            return code;
        }

        public String getName() {
            return name;
        }


    }
}
